package com.pai4j.common.service.localcache;

import com.google.common.cache.Cache;

public interface LocalCacheInter<K> {


    /**
     * 缓存刷新接口
     *
     * @param key
     * @param cacheObjectName
     */
    void refreshCache(K key, String cacheObjectName);

    /**
     * 获取本地缓存对象名获取缓存对象
     *
     * @param cacheObjectName
     * @return
     */
    Cache<K, Object> getCache(String cacheObjectName);
}
